
import { restGetAll } from '@/apis/rest';
import { defineStore } from 'pinia';
import { mainActions, mainGetters, mainState } from './types';
const state = (): mainState => {
    return {
        component: {
        
        },
        data: {

        }
    }
}

const actions: mainActions = {
    async _getArticleList() {
        restGetAll('article').then((res) => {
            console.log(res);
        })
    }
}

const getters: mainGetters = {
}


export const useMainStore = defineStore('mainComponet', {
    state,
    actions,
    getters,
});

